package tests.mocks;

import java.util.LinkedList;


import interfaces.IItem;
import interfaces.IItemCache;

public class IItemCacheMock implements IItemCache {

	private LinkedList<IItem> items = new LinkedList<IItem>();
	
	@Override
	public LinkedList<IItem> LookUpItem(long partnumber, String description) {
		return items;
	}

	@Override
	public void AddItems(LinkedList<IItem> itemsTemp) {
		this.items.addAll(itemsTemp);
	}

	@Override
	public void RemoveItems(LinkedList<IItem> itemsTemp) {
		this.items.removeAll(itemsTemp);
	}

}
